
* {
  margin: 0;
  padding: 0;
}


body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
}
.toast {
  /* existing styles */
  z-index: 999999; /* add a high z-index value */
  position: fixed; /* ensure position is fixed or absolute */
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

/* Enhanced Bottom Sheet Styles */
.bottom-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  z-index: 1001;
  transition: bottom 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.bottom-sheet-header {
  padding: 20px 25px 15px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.bottom-sheet-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
}

.close-sheet {
  font-size: 24px;
  color: #95a5a6;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.3s ease;
}

.close-sheet:hover {
  color: #e74c3c;
}

/* Form Sections */
.form-section {
  padding: 0 25px 25px;
  border-bottom: 1px solid #f8f9fa;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h4 {
  color: #28a745;
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section h4 i {
  font-size: 0.9rem;
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #2c3e50;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-input:readonly {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
}

.form-input[readonly]:focus {
  border-color: #dee2e6;
  box-shadow: none;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

select.form-input {
  appearance: none;
  background-color: #fff;
  cursor: pointer;
  padding-right: 40px;
}

select.form-input:focus {
  cursor: pointer;
}

/* Form Footer */
.form-footer {
  padding: 20px 25px;
  background: #f8f9fa;
  border-radius: 0 0 20px 20px;
}

.info-text {
  color: #6c757d;
  font-size: 0.85rem;
  margin: 0 0 20px;
  padding: 12px 15px;
  background: #e8f4fd;
  border-radius: 8px;
  border-left: 4px solid #17a2b8;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.info-text i {
  color: #17a2b8;
  margin-top: 2px;
  flex-shrink: 0;
}

.submit-profile-btn {
  width: 100%;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.submit-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.submit-profile-btn:active {
  transform: translateY(0);
}

.submit-profile-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}



/* Responsive Design */
@media (max-width: 480px) {
  .bottom-sheet-header {
    padding: 15px 20px 10px;
  }
  
  .form-section {
    padding: 0 20px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .form-footer {
    padding: 15px 20px;
  }
  
  .submit-profile-btn {
    padding: 12px;
    font-size: 0.95rem;
  }
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.main-layout {
  padding-top: 60px; /* Adjust for header */
  font-family: 'Poppins';
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tabs {
  display: flex;
  width: 350px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0;
}
.stats {
  display: flex;
  width: 350px;
  justify-content: center;
  align-items: center;
  padding:10px ;
  width: 100%;
  max-width: 800px;
  margin:  0 auto;
  padding-top: 20px;
}



.sidebar.left, .sidebar.right {
  display: none; /* Hide sidebars by default */
}

@media (min-width: 800px) {
  .main-layout {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr; /* Adjust as needed */
  }
  .tabs, #posts-container {
    grid-column: 2;
  }
  .sidebar.left, .sidebar.right {
    display: block;
  }
}



i {
  display: block;
  font-size: 17px;
  margin-bottom: 10px;
  color: #28a745;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: solid 1px #eee;
  background-color: #f2f5f9;
}

.profile-info {
  display: flex;
  align-items: center;
}

.stats {
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  border-top: 1px solid #fff;
  box-shadow: 0 0 10px #ddd;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  margin-top: 30px;
}

.stats-item {
  text-align: center;
}

.stats-item h3 {
  margin: 5px 0 0;
  color: #28a745;
}

.tabs {
  padding-top: 5px;
  display: flex;
  justify-content: center;
  background-color: #fff;
  border-bottom: 1px solid #fff;
  box-shadow: 0 0 10px #ddd;
}

.tabs button {
  flex: 1;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}



h1 {
  color: black;
  text-align: center;
  font-size: 24px;
  margin-top: -40px;
}

.profile-container {
  margin: 40px 0;
  padding: 20px;
  
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile-picture-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 20px;
  border: 1px solid #ccc;
  border-radius: 50%;
  margin-top: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-picture {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: solid 2px #ccc;
}

.edit-profile-picture-btn {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #fff;
  border: none;
  padding: 5px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
}

.edit-profile-picture-btn i {
  font-size: 16px;
  color: #333;
}

.edit-profile-btn {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stats-item p {
  font-size: 14px;
  color: #666;
}

.stats-item h3 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.file-input-icon {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background-color: white;
  border: 1px solid #fff;
  box-shadow: 0 0 10px #ddd;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  padding: 7px;
  display: none;
  cursor: pointer;
}

.file-input-icon.show {
  display: flex;
}

.file-input-icon i {
  color: #28a745;
  font-size: 14px;
}

.upload-button {
  background-color: #28a745;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: none;
}

.upload-button:hover {
  background-color: #1e7a33;
}

#upload-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}



.tabs button {
  background-color: #fff;
  border: none;
  padding-top: 5px;
  padding: 14px 24px;
  margin: 0 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}



.tabs button:hover {
  background-color: #f3f8f1;
  color: #28a745;
margin-top: 0px;
margin-bottom: 5px;
    padding-left: -10px;
  padding-right: -10px;
  border-radius: 15px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 99;
}

.bottom-sheet {
  position: fixed;
  bottom: -100%;
  width: 100vw;
  background: #fff;
  padding: 20px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 50000;
  transition: bottom 0.3s ease-in-out;
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.bottom-sheet-header h3 {
  margin: 0;
  font-size: 18px;
}

.close-sheet {
  font-size: 22px;
  cursor: pointer;
}

#bank-details-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

#bank-details-form input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-left: -10px;
}

input:focus {
  border-color: green;
}

.submit-bank-btn {
  width: 100%;
  background-color: #28a745;
  color: white;
  padding: 10px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.submit-bank-btn:hover {
  background-color: #1e7a33;
}

button i {
  font-size: 14px;
  cursor: pointer;
}

.bank-button {
  background-color: #fff;
  color: #28a745;
  border: solid 1px #fff;
  border-radius: 50px;
  box-shadow: 0 0 10px #ddd;
  margin-top: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bank-button:hover {
  background-color: #1e7a33;
  color: #fff;
}

.following {
  background-color: #fff;
  color: #28a745;
}

.side-bar {
  display: none;
  position: fixed;
  top: 0px;
  left: 0;
  z-index: 6;
  background-color: #fff;
  border: 1px #ddd solid;
  box-shadow: 0 0 10px #ddd;
  height: 100vh;
  width: 70%;
}

h4 {
  margin: 20px 0px;
  margin-left: 5px;
}

.side-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-top: 20px;
  margin-left: 5px;
}

.side-bar li {
  margin-bottom: 10px;
  border: 0.1px solid #fff;
  padding: 10px;
  border-end-end-radius: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px #ddd;
  margin-right: 3px;
}

.side-bar .active {
  color: #dd;
}

.side-bar a {
  text-decoration: none;
  color: #28a745;
  padding-right: 10%;
}

.side-bar i {
  margin-right: 20px;
}

.profile-sec {
  width: 100%;
  border-bottom: 0.1px solid #fff;
  padding-bottom: 5px;
  display: flex;
  box-sizing: border-box;
  box-shadow: 0 0 10px #ddd;
}

.profile-sec img {
  border: solid 0.1px #fff;
  box-shadow: 0 0 10px #ddd;
  border-radius: 100%;
  width: 50px;
  height: 50px;
  margin-left: 5px;
  margin-top: 10px;
}

.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.menu-icon {
  color: #28a745;
}

a .active {
  color: #28a745;
}

.modern-profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-profile-modal.show {
  display: flex;
  opacity: 1;
}

.modern-profile-modal .modal-content {
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modern-profile-modal.show .modal-content {
  transform: translateY(0);
}

.modern-profile-modal .modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modern-profile-modal .modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.modern-profile-modal .close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  padding: 0;
  line-height: 1;
}

.modern-profile-modal .modal-body {
  padding: 20px;
}

.image-preview-container {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

#image-preview {
  max-width: 100%;
  max-height: 100%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}

.upload-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.option-btn {
  background-color: #fff;
  border: solid 1px #fff;
  box-shadow: 0 0 10px #ddd;
  border-radius: 8px;
  padding: 6px 15px;
  font-size: 14px;
  color: #28a745;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.option-btn:hover {
  background-color: #f1f8f3;
  color: #28a745;
}

.option-btn i {
  font-size: 16px;
  color: #28a745;
}

.edit-options {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.edit-btn {
  background-color: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.edit-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}

.edit-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.modern-profile-modal .modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.secondary-button {
  background-color: #f8f9fa;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-button:hover {
  background-color: #e9ecef;
}

.primary-button {
  background-color: #28a745;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-button:hover {
  background-color: #218838;
}

.primary-button:disabled {
  background-color: #b3d9bc;
  cursor: not-allowed;
}

.button-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.uploading .button-text {
  display: none;
}

.uploading .button-loader {
  display: inline-block;
}

.tab-content {
  display: none;
  padding: 10px;
  margin-top: 20px;
}

.tab-content.active {
  display: block;
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary-green: #28a745;
  --primary-green-hover: #218838;
  --primary-blue: #007bff;
  --primary-blue-hover: #0056b3;
  --warning-yellow: #ffc107;
  --star-gold: #f1c40f;
  --star-inactive: #e9ecef;

  --text-primary: #333;
  --text-secondary: #555;
  --text-muted: #777;
  --text-light: #999;

  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-light: #f9f9f9;

  --border-color: #e0e0e0;
  --border-focus: var(--primary-green);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== MAIN CONTAINER ===== */
.reviews-container {
     max-width: 800px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}

.reviews-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ===== REVIEW FORM CONTAINER ===== */
.review-form-container {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

.review-form-container:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.review-form-container h3 {
  font-family: var(--font-family);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.review-form-container h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
  border-radius: 2px;
}

/* ===== FORM STYLING ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.form-group textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  line-height: 1.6;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  resize: vertical;
  transition: all var(--transition-fast);
  background: var(--bg-secondary);
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group textarea::placeholder {
  color: var(--text-light);
  font-style: italic;
}

/* ===== RATING INPUT ===== */
.rating-input {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-input label {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
}

.stars {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.stars i {
  font-size: 1.75rem;
  color: var(--star-inactive);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.stars i:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stars i.active {
  color: var(--star-gold);
  text-shadow: 0 0 8px rgba(241, 196, 15, 0.3);
}

.stars i:hover ~ i {
  transform: scale(0.95);
}

/* ===== BUTTONS ===== */
.submit-review-btn {
  background: linear-gradient(135deg, var(--primary-green), #34ce57);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.submit-review-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-smooth);
}

.submit-review-btn:hover {
  background: linear-gradient(135deg, var(--primary-green-hover), #28a745);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.submit-review-btn:hover::before {
  left: 100%;
}

.submit-review-btn:active {
  transform: translateY(0);
}

#edit-review-btn {
  background: linear-gradient(135deg, var(--primary-blue), #0056b3);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-family);
  margin-bottom: 1rem;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

#edit-review-btn:hover {
  background: linear-gradient(135deg, var(--primary-blue-hover), #004085);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== REVIEWS LIST ===== */
.reviews-list {
  margin-top: 2rem;
}

.review-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-green), var(--primary-blue));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.review-card:hover::before {
  opacity: 1;
}

/* ===== REVIEW HEADER ===== */
.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.review-card:hover .reviewer-avatar {
  border-color: var(--primary-green);
  transform: scale(1.05);
}

.reviewer-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-family: var(--font-family);
}

.review-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-family: var(--font-family);
}

.review-rating {
  margin-left: auto;
  display: flex;
  gap: 0.125rem;
}

.review-rating i {
  font-size: 1.125rem;
  color: var(--star-gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== REVIEW CONTENT ===== */
.review-content {
  margin-top: 1rem;
  line-height: 1.7;
}

.review-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  font-family: var(--font-family);
}

/* ===== NO REVIEWS STATE ===== */
.no-reviews {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-family: var(--font-family);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.no-reviews::before {
  content: '📝';
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 800px) {
  .reviews-container {
    margin: 1rem 0;
  }

  .review-form-container {
    margin-bottom: 1.5rem;
  }

  .review-form-container h3 {
    font-size: 1.5rem;
  }


  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .review-rating {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .reviewer-avatar {
    width: 40px;
    height: 40px;
  }

  .stars i {
    font-size: 1.5rem;
  }

  .submit-review-btn {
    width: 100%;
    padding: 1rem;
  }
}

@media (max-width: 800px) {
  .rating-input {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .form-group textarea {
    min-height: 100px;
    padding: 0.875rem;
  }



/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.skeleton {
  background: #e0e0e0;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.skeleton-profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto;
}

.skeleton-username {
  width: 150px;
  height: 30px;
  border-radius: 4px;
  margin: 10px auto;
}

.skeleton-stats-text {
  width: 60px;
  height: 16px;
  border-radius: 4px;
  margin: 0 auto;
}

.skeleton-stats-number {
  width: 40px;
  height: 24px;
  border-radius: 4px;
  margin: 5px auto;
}

.skeleton-post {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.profile-picture,
#username,
.stats-item p,
.stats-item h3 {
  display: none;
}

.posts-wrapper {
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 30px;
}
header {
  background-color: white;
  border: solid 1px #fff;
  box-shadow: 0 0 10px #ddd;
  position: fixed;
  width: 100vw;
  z-index: 100;
}

#profileHeaderUsr {
  font-size: 16px;
  padding: 10px;
  margin-top: 10px;
  color: #28a745;
  margin-left: -2px;
}

/* For menu-icon */
.menu-icon {
    z-index: 3000;
}

/* For side-bar */
.side-bar {
    z-index: 3000;
}

/* For pre tag in side-bar */
.side-bar pre {
    font-size: 10px;
    text-align: center;
    margin-top: 40px;
    color: green;
}
.bank-button{
     width: 300px;
     padding-top: 5px;
     height: 45px;
}
.tab-btn i {
  margin-right: 5px;
}

.stats-item i{
  height: 35px;
  width: 35px;
  padding: 7px;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 0 10px #ddd;
  border-radius: 50%;
}
/* Add these styles to your CSS file */

/* Utility class to hide elements */
.hidden {
  display: none !important;
}

/* Header and Profile Styling */
.header {
  background-color: white;
  border: solid 1px #fff;
  box-shadow: 0 0 10px #ddd;
  position: fixed;
  width: 100vw;
  z-index: 100;
}

.profile-header-user {
  font-size: 16px;
  margin-top: 10px;
  padding: 10px;
  color: #28a745;
  margin-left: -2px;
}

/* Sidebar and Copyright */
.menu-icon,
.side-bar {
  z-index: 3000;
}

.copyright {
  font-size: 10px;
  text-align: center;
  margin-top: 40px;
  color: green;
}

/* Main Layout and Stats */
.stats {
  width: 350px; /* Adjust as needed */
}

.stats-item p,
.stats-item h3 {
  display: none; /* Initially hidden, shown by JS */
}

/* Tabs and Content */
#posts-container {
  padding: 0;
  margin-top: -18px;
}

#reviews-tab {
  width: 350px; /* Adjust as needed */
  padding: 0;
  margin-bottom: 60px;
  margin-top: -5px;
}

/* Profile Picture Modal */
.hidden {
  display: none;
}

/*
 * This media query targets screens smaller than 768px (common mobile breakpoint).
 * It restructures the main layout and post containers for a mobile-first, edge-to-edge design.
 */
@media (max-width: 767px) {
  
  /* --- Layout & Container Fixes --- */
  
  /* This is the most important fix. It forces the main content area to take up the full width. */
  .main-layout {
    width: 100%;
    padding: 0;
  }
  
  /* Ensures the tab content area, which wraps your posts, also takes full width. */
  .tab-content {
    width: 100%;
    padding: 0;
  }

  /* This fixes the specific inline margin on the posts container. */
  #posts-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    margin-top: -18px; /* Keep this specific margin from your HTML for spacing */
  }
  
  /*
   * 2. Remove padding from the individual post containers to allow
   * the media elements inside to stretch to the full width.
   */
  .post {
    padding-left: 0;
    padding-right: 0;
  }
  
  /*
   * 3. Selectively add padding back to the *text content* inside the posts
   * to ensure it remains neatly aligned and doesn't touch the screen edges.
   */
  .post-header,
  .post-user-info,
  .product-title,
  .post-description-text,
  .product-details,
  .buy,
  .post-actions,
  .actions {
    padding-left: 10px;
    padding-right: 10px;
  }

  /*
   * 4. Ensure the media-specific containers take up the full width
   * and remove any rounded corners for an edge-to-edge look.
   */
  .media-card,
  .post-video-container {
    border-radius: 0 !important;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: auto;
    right: auto;
  }
  
  /*
   * 5. Make the images and videos themselves have square corners.
   * The !important rule ensures this overrides any other border-radius rule.
   */
  .post-image,
  .post-video {
    width: 100%;
    border-radius: 0 !important;
  }
}
